package com.bdqn.struts.action;

import com.bdqn.struts.entity.Login;
import com.bdqn.struts.service.LoginService;
import com.opensymphony.xwork2.ActionSupport;

import java.util.List;

public class LoginTemAction extends ActionSupport {
    private String username;
    private String password;
    //用户属性
    private Login login;

    private LoginService loginService;
    @Override
    public String execute() throws Exception {
        List<Login> loginList=null;
        //Login login =loginService.getLoginByTem(username,password);
        if (loginList.size()>0){
            return SUCCESS;
        }
        return ERROR;
    }
    //添加用户信息
    public String save(){
        loginService.save(login);
        return SUCCESS;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
